<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org" xmlns:name="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <title>index02</title>
</head>
<body>
<table>
    <th>id</th>
    <th>name</th>
    <th>age</th>
    <th>index</th>
    <tr th:each=" user,iterStat:${users}">
        <td th:text="${user.id}"></td>
        <td th:text="${user.name}"></td>
        <td th:text="${user.age}"></td>
        <td th:text="${iterStat.index}+1"></td>
    </tr>


</table>

</body>
</html>